-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CursedObjectConstructor #203
base: main
Are you sure you want to change the base?
Conversation
I'll look into web failure later |
|
||
assert_eq!(res.status().as_u16(), 200); | ||
assert_eq!(res.headers().get(CONTENT_TYPE).unwrap(), TEXT_UTF8); | ||
|
||
let mut req = Request::default(); | ||
*req.uri_mut() = Uri::from_static("/abc"); | ||
|
||
let res = service.call(req).await.unwrap(); | ||
let res = Service::<Request<_>>::call(&service, req).await.unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that type inference have a hard time with such highly generic code. Though i wouldn't mind some turbofish api to guide inference for Req
like with GenericRouter::with_custom_object
.
But why it doesn't require annotations in Context
tests. Needs more investigation and experimenting with other possible variations.
Wow. The breakage of the examples looks like a deal breaker. 😞 |
with router that hide the lifetimes behind reference counting string type the need of But zero copy deserialize types like |
No description provided.